package com.ayu.auth.service.impl;

import com.ayu.auth.mapper.UserMapper;

import com.ayu.auth.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.security.core.userdetails.UserDetails;
import org.springframework.security.core.userdetails.UsernameNotFoundException;
import org.springframework.stereotype.Service;

/**
 * @Author: 徐林玉//作者及
 * @Date: 2021/9/26//完成日期
 * @Description: //
 * @Version: v0.0.1 // 版本信息
 * @Function List: // 主要函数及其功能
 * @Others: // 其它内容的说明
 * @History: // 历史修改记录
 **/

@Service
public class UserServiceImpl implements UserService
{

	@Autowired
	private UserMapper userMapper;


	@Override
	public UserDetails loadUserByUsername(String s) throws UsernameNotFoundException
	{
		return userMapper.findByName(s);
	}




}
